package com.uduemc.biso.module.basic.service.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.uduemc.biso.core.extities.center.SysComponentType;
import com.uduemc.biso.core.utils.RestResult;
import com.uduemc.biso.module.basic.service.service.SysComponentTypeService;

@RequestMapping("/sys-component-type")
@RestController
public class SysComponentTypeController {

	@Autowired
	private SysComponentTypeService sysComponentTypeServiceImpl;

	@GetMapping(value = { "/find-all" })
	public RestResult findAll() {
		List<SysComponentType> data = sysComponentTypeServiceImpl.findAll();
		return RestResult.ok(data, SysComponentType.class.toString(), true);
	}

}
